package com.group3.controller.adminController;

import com.group3.domain.AttendanceResult;
import com.group3.pojo.receive.AttendanceReceive;
import com.group3.pojo.result.AttendanceInfoResult;
import com.group3.utils.Result;
import com.group3.service.AAttendanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * AAttendanceController
 *
 * @author HY
 * 2021/06/09 16:54
 **/

@Api(tags = "管理员接口")
@RestController
@RequestMapping("/admin")
public class AAttendanceController {

    @Resource
    private AAttendanceService aAttendanceService;

    // 查询项目考勤记录
    @ApiOperation(value = "查询项目考勤记录")
    @GetMapping(value = "/attendance")
//    @ApiImplicitParams({
//            @ApiImplicitParam(),
//    })
    public Result<AttendanceInfoResult> selectAttendance(
            @Validated AttendanceReceive attendanceReceive){

        return aAttendanceService.selectAttendance(attendanceReceive);
    }

}
